import React, { useEffect } from 'react'
import { Button } from 'react-vant';
import { useNavigate } from 'react-router-dom';

const NoAuthView = () => {
  const navigate = useNavigate();

  useEffect(() => {
    localStorage.clear();
  }, [])
  return (
    <div className='on_found_box'>
      <h3>请选择别的用户登录</h3>
      <div>
        页面无权限进入，请重新登录
      </div>
      <Button onClick={() => navigate("/login")} round={true} type='primary' size='small'>
        返回登录
      </Button>
    </div>
  )
}

export default NoAuthView;
